package com.seari.mapper;

import com.seari.bean.User;
import com.seari.pojo.QueryUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;



public interface UserMapper {

		// 用户登陆
	    public User getUserByLogin(String username,String password);
        //public Map<String,String> getUserById(Map<String,String> param);
        public List<User> getUserByParams(QueryUser qu);
        public int addUser(User user);
        public int updateUser(User user);
        public int checkUserExist(QueryUser qu);
        public int deleteUser(@Param("uid")int uid);
        public int getUserListCount(QueryUser qu);
		//public Map<String, Object> getUserByToken(@Param("token")String token);
		public List<User> getUserByUid(QueryUser qu);
		public List<User> userSearch(QueryUser qu);
		public List<Integer> getRoleIdByUid(QueryUser qu);
		
}
